package com.gitee.wsl.ext.list.builder

import com.gitee.wsl.ext.collection.builder.CollectionBuilder
import com.gitee.wsl.ext.collection.builder.buildCollection


@Suppress("UNCHECKED_CAST")
inline fun <T> buildList(builder: (CollectionBuilder<T>).() -> Unit): List<T> =
    buildCollection(mutableListOf(), builder) as List<T>
